Help:Transclusion

From EncyclopAtys

Revision as of 10:52, 25 July 2020 by Craftjenn (talk | contribs)
Jump to: navigation, search
en:Help:Transclusion
fr:Aide:Transclusion
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Craftjenn, 2020-07-25)

Transclusion is generally the inclusion of the content of a document into another document by reference.

Transclusion

See https://www.mediawiki.org/wiki/Transclusion

The syntax is {{Namespace:Pagename}}. In short, some transclusion examples: If the source is in

  • Template ns (for ex "Template:Welcome"): use {{Welcome}}
  • Main ns (for ex "Lore"): {{:Lore}}
  • Other ns (for ex: User:Example): {{User:Example}}
  • If source is a subpage of the target (for ex « Transclusion/ja ») you can use subpage name, without the ns: {{/ja}}


Partial transclusion tags

More about <noinclude>, <onlyinclude> and <includeonly>: see https://www.mediawiki.org/wiki/Transclusion#Partial_transclusion

Specialpages

{{Special:RecentChanges|namespace=10|limit=5}}, produce:
No changes during the given period match these criteria.
.

It does not work with FR/DE/... wikis (gives a 301 nginx error).

In game

To include wiki pages in game, see Templates under Category:IGtemplate: all between {{IGend}} and {{IGstart}} will be displayed in game.

Notes and links