Help page: Edit

Editing Help:Transclusion

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 159: Line 159:
 
Using <code><nowiki>{{#section-h:PAGENAME|SECTIONNAME}}</nowiki></code>, one can easily transclude the content within a section on one page to another by referring to the standard, ubiquitous headline-based section headers used throughout BattleTechWiki. To transclude the lead of an article with this method, one can use {{nowrap|<code><nowiki>{{#section-h:PAGENAME}}</nowiki></code>}}. This is simpler than the already widely used selective transclusion methods of the sections below, which require special source document markup.
 
Using <code><nowiki>{{#section-h:PAGENAME|SECTIONNAME}}</nowiki></code>, one can easily transclude the content within a section on one page to another by referring to the standard, ubiquitous headline-based section headers used throughout BattleTechWiki. To transclude the lead of an article with this method, one can use {{nowrap|<code><nowiki>{{#section-h:PAGENAME}}</nowiki></code>}}. This is simpler than the already widely used selective transclusion methods of the sections below, which require special source document markup.
  
{{Warning|This selective transclusion method often adds a line break above and/or below the section transclusion, depending upon the source and target document markup; to avoid this issue, wrap the selective transclusion template in a {{tlx|trim}} template.}} In other words, use the following modifications to the transclusion code listed immediately above:
+
{{High priority|This selective transclusion method often adds a line break above and/or below the section transclusion, depending upon the source and target document markup; to avoid this issue, wrap the selective transclusion template in a {{tlx|trim}} template.}} In other words, use the following modifications to the transclusion code listed immediately above:
 
* Code for transcluding a section in the body of an article: <code><nowiki>{{trim|{{#section-h:PAGENAME|SECTIONNAME}}}}</nowiki></code>
 
* Code for transcluding a section in the body of an article: <code><nowiki>{{trim|{{#section-h:PAGENAME|SECTIONNAME}}}}</nowiki></code>
 
* Code for transcluding the lead of an article: <code><nowiki>{{trim|{{#section-h:PAGENAME}}}}</nowiki></code>
 
* Code for transcluding the lead of an article: <code><nowiki>{{trim|{{#section-h:PAGENAME}}}}</nowiki></code>

Please note that all contributions to BattleTechWiki are considered to be released under the GNU FDL 1.2 (see BattleTechWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Advanced templates:

Editing: {{Merge}}   {{Moratorium}}   {{Otheruses| | | }}

Notices: {{NoEdit}}   {{Sign}}   {{Unsigned|name}}   {{Welcome}}

Administration: {{Essay}}   {{Policy}}   {{Procedure}}

Templates used on this page:

This page is a member of 2 hidden categories: