m (→Partial transclusion tags) |
m (→Partial transclusion tags) |
||
Line 20: | Line 20: | ||
=== Partial transclusion tags === | === Partial transclusion tags === | ||
What will transclude from a page can be controlled with the tags <nowiki><noinclude></nowiki>, <nowiki><onlyinclude></nowiki> and <nowiki><includeonly></nowiki> placed in the source page wikitext. | What will transclude from a page can be controlled with the tags <nowiki><noinclude></nowiki>, <nowiki><onlyinclude></nowiki> and <nowiki><includeonly></nowiki> placed in the source page wikitext. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | !wiki code !! What is rendered here (source page) !! What is transcluded there (destination page) | ||
+ | |- | ||
+ | | <noinclude>text1</noinclude> text2 || text1 text2 || text2 | ||
+ | |- | ||
+ | | <onlyinclude>text1</onlyinclude> text2 || text1 text2 || text1 | ||
+ | |- | ||
+ | | <includeonly>text1</includeonly> text2 || text2 || text1 text2 | ||
+ | |} | ||
+ | |||
More on https://www.mediawiki.org/wiki/Transclusion#Partial_transclusion | More on https://www.mediawiki.org/wiki/Transclusion#Partial_transclusion | ||
Transclusion is generally the inclusion of the content of a document into another document by reference.
See https://www.mediawiki.org/wiki/Transclusion
The syntax is {{Namespace:Pagename}}. In short, some transclusion examples: If the source is in
What will transclude from a page can be controlled with the tags <noinclude>, <onlyinclude> and <includeonly> placed in the source page wikitext.
wiki code | What is rendered here (source page) | What is transcluded there (destination page) |
---|---|---|
text1 text2 | text1 text2 | text2 |
text1 text2 | text1 text2 | text1 |
text2 | text2 | text1 text2 |
More on https://www.mediawiki.org/wiki/Transclusion#Partial_transclusion
It does not work with FR/DE/... wikis (gives a 301 nginx error).
To include wiki pages in game, see Templates under Category:IGtemplate: all between {{IGend}} and {{IGstart}} will be displayed in game.