Sarna News: Bad 'Mechs - Icestorm
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 220: Line 220:
  
 
=====Additional markup for selectively transcluded sub-article leads=====
 
=====Additional markup for selectively transcluded sub-article leads=====
 +
{{further|BattleTechWiki:Summary style#Using excerpts for article synchronization}}
  
The first instance of the sub-article title should appear in bold in the first lead sentence of that article; this is often not desirable for a transclusion to a section of the parent article. In addition, the parent article is often wikilinked in the lead of a sub-article; when transcluded to the parent article, this wikilink will appear as bold text.  The wikitext markup listed below can be used to address both of these problems.
+
Per [[MOS:LEAD#Format of the first sentence]], the first instance of the sub-article title should appear in bold in the first lead sentence of that article; this is often not desirable for a transclusion to a section of the parent article. In addition, the parent article is often wikilinked in the lead of a sub-article; when transcluded to the parent article, this wikilink will appear as bold text.  The wikitext markup listed below can be used to address both of these problems.
  
 
To ensure that the article title is bolded in the first sentence of the sub-article, but unbolded and wikilinked in the transclusion to the parent article, make the following replacement in the sub-article's first lead sentence:
 
To ensure that the article title is bolded in the first sentence of the sub-article, but unbolded and wikilinked in the transclusion to the parent article, make the following replacement in the sub-article's first lead sentence:
Line 230: Line 231:
  
 
If there is a wikilink to the parent article in the lead section of the sub-article, replacing the wikilink to the parent article with a {{tlx|no selflink}} template will ensure that it is wikilinked in the sub-article's lead but not in the transclusion to the parent article.  In other words:
 
If there is a wikilink to the parent article in the lead section of the sub-article, replacing the wikilink to the parent article with a {{tlx|no selflink}} template will ensure that it is wikilinked in the sub-article's lead but not in the transclusion to the parent article.  In other words:
# If the wikilink to the parent article is not a [[w:WP:Piped link|Piped link]], replace <code>&#91;&#91;{{var|PARENT_ARTICLE}}&#93;&#93;</code> with {{tnull|no selflink|{{var|PARENT_ARTICLE}}}} in the sub-article's lead
+
# If the wikilink to the parent article is not a [[BTW:Piped link]], replace <code>&#91;&#91;{{var|PARENT_ARTICLE}}&#93;&#93;</code> with {{tnull|no selflink|{{var|PARENT_ARTICLE}}}} in the sub-article's lead
# If the [[w:WP:Piped link|wikilink to the parent article includes a pipe (e.g., this link)]], replace <code>&#91;&#91;{{var|PARENT_ARTICLE}}|{{var|Piped link wikitext}}&#93;&#93;</code> with {{tnull|No selflink|{{var|PARENT_ARTICLE}}|{{var|Piped link wikitext}}}} in the sub-article's lead
+
# If the [[BattleTechWiki:Piped link|wikilink to the parent article includes a pipe (e.g., this link)]], replace <code>&#91;&#91;{{var|PARENT_ARTICLE}}|{{var|Piped link wikitext}}&#93;&#93;</code> with {{tnull|No selflink|{{var|PARENT_ARTICLE}}|{{var|Piped link wikitext}}}} in the sub-article's lead
  
 
==Drawbacks==
 
==Drawbacks==

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: