<nixoswikibot>
[[Template:Template]] !N https://nixos.wiki/index.php?oldid=655&rcid=654 * Samueldr * (+1099) Created page with "<noinclude> {{Template}} '''A special template for use in ''all'' template pages.''' == Usage == This template should be added at the very beginning of all template pages be..."
<samueldr>
would make it possible to make those conditional on the number passed to the template
<samueldr>
in the meantime, it would be possible to manually set the style
<ixxie>
how do you make a template?
<samueldr>
basically, any page inside the `Template:` namespace is then available as a template. callable {{PageName|param 1|param 2|named = value|named = value}}
<nixoswikibot>
[[Template:Sandbox]] !N https://nixos.wiki/index.php?oldid=667&rcid=666 * Samueldr * (+189) Created page with "<noinclude> Testing ifs... {{#if: | yes | no}} → no {{#if: string | yes | no}} → yes {{#if: | yes | no}} → no {{Sandbox}} </noinclude><includeonly>{{{1}}} : {{#if..."
<ixxie>
how did you then add instructions to the template without them becoming part of the template?
<samueldr>
you can look at the source, but there are two tags that are useful
<samueldr>
<noinclude>
<samueldr>
and <includeonly>
<samueldr>
<noinclude> will not be included in the template, <includeonly> won't be shown when rendered as a page
<ixxie>
aah I missed that
<ixxie>
cool
<samueldr>
as of right now, I'm using a virtualbox appliance to test mediawiki stuff, since it's all new to me
<samueldr>
spent my evening yesterday learning about templates
<samueldr>
limitations and such
<nixoswikibot>
[[Template:RedAlert]] N https://nixos.wiki/index.php?oldid=668&rcid=667 * Ixxie * (+67) Created page with "<includeonly>'''[{{1}}]'''</includeonly> <noinclude> </noinclude>"
<samueldr>
avoid leaving empty lines inside includeonly and outside noinclude
<samueldr>
otherwise, they will transclude (wikimedia term that I may be misusing) into the page
<nixoswikibot>
[[Template:Green]] N https://nixos.wiki/index.php?oldid=680&rcid=678 * Ixxie * (+209) Created page with "<includeonly><span style="color:#32CD32">'''[{{{1}}}]'''</span></includeonly><noinclude>Highlight in red and square bracket in bold: <code><nowiki>{{green|95%}}</nowiki></code..."
<nixoswikibot>
[[Template:Orange]] N https://nixos.wiki/index.php?oldid=682&rcid=680 * Ixxie * (+203) Created page with "<includeonly><span style="color:#FF8C00">'''[{{{1}}}]'''</span></includeonly><noinclude>Highlight in red and square bracket in bold: <code><nowiki>{{red|5%}}</nowiki></code> m..."
<ixxie>
samueldr: if fadenb eventually activated {{#if}} and some other stuff, do you think we could automate tracking of article writing progress?
<ixxie>
like if you say, we want at least so and so many words per section, and it counts which subsections are complete and computes a percentage automatically?
<samueldr>
if possible, I don't know if it would be a wise area to attain completion through arbitrary word count
<ixxie>
samueldr: only per section
<samueldr>
once I configure the extension ony my test vm (I believe it ships with mediawiki), I'll check what's possible