Help:FAQ: Difference between revisions

From NixOS Wiki
imported>Samueldr
Explains how to split a FAQ entry.
 
Klinger (talk | contribs)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
<li>Create the new page using the "short" URL. (FAQ/unfree, FAQ/Libraries)</li>
<li>Create the new page using the "short" URL. (FAQ/unfree, FAQ/Libraries)</li>
<li>Include the whole content of the entry, wrap this way:
<li>Include the whole content of the entry, wrap this way:
<syntaxhighlight lang="mediawiki">
<syntaxhighlight lang="html+handlebars">
{{FAQ/breadcrumb}}{{#tweekihide:firstHeading}}<onlyinclude>
{{FAQ/breadcrumb}}{{#tweekihide:firstHeading}}<onlyinclude>
== How can I install a proprietary or unfree package? ==
== How can I install a proprietary or unfree package? ==
Line 14: Line 14:
</syntaxhighlight>
</syntaxhighlight>
<li>Transclude the page (prefer using the short link)
<li>Transclude the page (prefer using the short link)
<syntaxhighlight lang="mediawiki">
<syntaxhighlight lang="html+handlebars">
{{:FAQ/unfree}}
{{:FAQ/unfree}}
</syntaxhighlight>
</syntaxhighlight>
Line 22: Line 22:
</li>
</li>
</ol>
</ol>
[[Category:Contributions]]

Latest revision as of 20:10, 2 September 2024

Warning: This is NOT the FAQ. This is for wiki page authors. Follow this link to go to the FAQ.

Splitting a FAQ entry into a sub-page

This is done in four steps:

  1. Create the new page using the "short" URL. (FAQ/unfree, FAQ/Libraries)
  2. Include the whole content of the entry, wrap this way:
    {{FAQ/breadcrumb}}{{#tweekihide:firstHeading}}<onlyinclude>
    == How can I install a proprietary or unfree package? ==
    ... page contents here. ...
    </onlyinclude>
    
  3. Transclude the page (prefer using the short link)
    {{:FAQ/unfree}}
    
  4. Move the page from the short to the full title link.