Jump to content

Template:User main device: Difference between revisions

From postmarketOS Wiki
Knuxify (talk | contribs)
mNo edit summary
Knuxify (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{Template:Template}}
{{Template:Template}}


This is an userbox showing the user's main device. If there's a wiki page for the device, it will link to it.
This is an userbox showing the user's main device. If there's a wiki page for the device, it will link to it. For devices with multiple variants, you can add an extra parameter to add a name.
 
{{User_main_device|Nonexistent device (fake-device)}}<br>


{{User_main_device|Nonexistent device (fake-device)}}
<pre>{{User_main_device|Nonexistent device (fake-device)}}</pre>
<pre>{{User_main_device|Nonexistent device (fake-device)}}</pre>


{{User_main_device|Nokia N900 (nokia-n900)}}<br>
{{User_main_device|Nokia N900 (nokia-n900)}}
<pre>{{User_main_device|Nokia N900 (nokia-n900)}}</pre>


<pre>{{User_main_device|Nokia N900 (nokia-n900)}}</pre>
{{User_main_device|OnePlus 6 (oneplus-enchilada)|OnePlus 6T (oneplus-fajita)}}
<pre>{{User_main_device|OnePlus 6 (oneplus-enchilada)|OnePlus 6T (oneplus-fajita)}}</pre>


{{todo|When this links to a nonexistent device, the link appears in [[Special:WantedPages]]. This is a side-effect of using #ifexists. See [https://phabricator.wikimedia.org/T14019 issue T14019].}}
{{todo|When this links to a nonexistent device, the link appears in [[Special:WantedPages]]. This is a side-effect of using #ifexists. See [https://phabricator.wikimedia.org/T14019 issue T14019].}}
</noinclude>{{userbox
</noinclude>{{userbox
| border-c = #000000
| border-c = #a0a0a0
| id      = <p style="color: #000; font-size: 30px; display: inline;">📱</p>
| id      = <span style="color: #000; font-size: 30px; line-height: 1;">📱</span>
| id-c    = #ffffff
| id-c    = #ffffff
| info    = This user's main device is a '''{{{#ifexist: {{{1}}} | [[{{{1}}}]] | {{{1}}}}}}'''.
| info    = This user's main device is a '''{{#ifexist: {{{1}}}|[[{{#if: {{{2|}}} | {{{1}}}{{!}}{{{2}}} | {{{1}}} }}]]|{{#if: {{{2|}}} | {{{2}}} | {{{1}}} }} }}'''.
}}
}}

Latest revision as of 08:29, 28 March 2024

This page is a template. It contains no postmarketOS-related information, but should be used as part of other articles.

Check out all pages using this template and feel free to discuss it in the gitlab issues.

For more information, read Templates and Template:Template.

This is an userbox showing the user's main device. If there's a wiki page for the device, it will link to it. For devices with multiple variants, you can add an extra parameter to add a name.

📱 This user's main device is a Nonexistent device (fake-device).
{{User_main_device|Nonexistent device (fake-device)}}
📱 This user's main device is a Nokia N900 (nokia-n900).
{{User_main_device|Nokia N900 (nokia-n900)}}
📱 This user's main device is a OnePlus 6T (oneplus-fajita).
{{User_main_device|OnePlus 6 (oneplus-enchilada)|OnePlus 6T (oneplus-fajita)}}
TODO TODO: When this links to a nonexistent device, the link appears in Special:WantedPages. This is a side-effect of using #ifexists. See issue T14019.
📱 This user's main device is a {{{1}}}.