Difference between revisions of "User:JJR"
(129 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<div id="createContentBtns"> | <div id="createContentBtns"> | ||
<div class="container"> | <div class="container"> | ||
<div class="card"> | <div class="card jjrcard"> | ||
<div class="header"> | <div class="header"> | ||
<h3>My shortcuts{{#fas:angle-down}}</h3> | <h3>My shortcuts{{#fas:angle-down}}</h3> | ||
Line 8: | Line 8: | ||
<div class="body"> | <div class="body"> | ||
<ul> | <ul> | ||
<li>[[Help:Todo List]]</li> | |||
<li>[[:Category: JR templates]]</li> | <li>[[:Category: JR templates]]</li> | ||
<li>[[Special:Import]]</li> | |||
<li>[[MediaWiki:Common.css]]</li> | <li>[[MediaWiki:Common.css]]</li> | ||
<li>[[MediaWiki:Common.js]]</li> | <li>[[MediaWiki:Common.js]]</li> | ||
<li>[[Template:Personjr]]</li> | <li>[[Template:Personjr]]</li> | ||
<li><s>[[Moving_Image:Casablanca_(film)|Casablanca]]</s></li> | |||
</ul> | </ul> | ||
</div> | </div> | ||
Line 17: | Line 20: | ||
</div> | </div> | ||
</div> | </div> | ||
== Participant WIP == | |||
[[Template:Parti]] | |||
== Mystery problem == | |||
'''Lua error in Module:Documentation at line 140: message: type error in message cfg.container (string expected, got nil)''' | |||
[[Template:CatAutoTOC]] is part of it | |||
[[Template:Template other]] demobox sucks | |||
<pre><nowiki>:addClass(message('container')) | |||
cfg['view-link-display'] = 'view' | |||
Template:Documentation/preload | |||
Template:Documentation/preload-module-doc</nowiki></pre> | |||
[[Module:Documentation/config]] | |||
[[MediaWiki:Scribunto-doc-page-show]] | |||
invo | |||
{{#invoke:Documentation|contentTitle}} | |||
invo | |||
== Microdata formats == | |||
* https://www.w3.org/TR/xhtml-rdfa-primer/ | |||
* http://microformats.org/wiki/media-info-examples | |||
* https://www.dublincore.org/ | |||
=== microdata === | |||
*https://schema.org/Movie#eg-0017 | |||
<nowiki><div itemscope itemtype="https://schema.org/Movie"></nowiki> | |||
;RDFa :<nowiki><div vocab="https://schema.org/" typeof="Movie"></nowiki> | |||
== Links == | == Links == | ||
*[[User:JJR/sandbox]] | *[[User:JJR/sandbox]] | ||
*[[Step_a_Little_Higher/sandbox]] | *[[Step_a_Little_Higher/sandbox]] | ||
*[[User:JJR/heldby]] | *[[User:JJR/heldby]] | ||
*[[User:JJR/nsexample]] | *[[User:JJR/nsexample]] | ||
== | * <li><span class="noprint plainlinks purgelink">[{{fullurl:{{FULLPAGENAME}}|action=purge}} Clear Cache ("purge")]</span></li> | ||
* https://www.youtube.com/channel/UCiyi7aqzHn98o7OYDcDS8HQ | |||
https://gist.github.com/jdittrich/5611208 | |||
== batch move == | == batch move == | ||
Line 41: | Line 85: | ||
* https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization#Basic_setup | * https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization#Basic_setup | ||
* https://www.mediawiki.org/wiki/Manual:$wgIncludejQueryMigrate | * https://www.mediawiki.org/wiki/Manual:$wgIncludejQueryMigrate | ||
== phc == | |||
https://www.middlebury.edu/library/special-collections/collections | |||
== tpl == | == tpl == | ||
Line 58: | Line 106: | ||
=== preload === | === preload === | ||
http://ephemeralfilm.info/a/?action=edit§ion=new&preload=Template:Personjr/Preload | |||
{{urlencode:Person:{{LOCALTIMESTAMP}}}} | |||
this almost works... you could title the person with the name of the given film and the role... | |||
http://ephemeralfilm.info/index.php?action=edit&createonly=1&preload=Template:Personjr/Preload&title={{urlencode:Person:{{LOCALTIMESTAMP}}}} | |||
====add section to arbitrary page==== | |||
;this doesn't work | |||
:http://ephemeralfilm.info/a/index.php?action=edit§ion=new&pageid=22199§iontitle=Synopsis | |||
:{{fullurl:Moving Image:It's All Music|action=edit§ion=new&summary=synopsis}} | |||
;this kind of works | |||
:{{fullurl:Moving Image:It's All Music|action=edit§ion=new&preloadtitle=Synopsis}} | |||
;can we tell if the section exists? | |||
{{#ifexist:Template:Tc|1|Template Tc does not exist}} | |||
{{#ifexist:Template:Filmjr|Filmjr exists|Template Filmjr does not exist}} | |||
{{#if:{{#section-h:Moving Image:It's All Music|Synopsis}}|yes|no}} | |||
ff: {{#if:{{#section-h:Moving Image:It's All Music|ff}}|yes|no}} | |||
==== inputBox Preload ==== | |||
<inputbox> | |||
type=create | |||
break=no | |||
preload=Template:Personjr/Preload | |||
buttonlabel=Add new person | |||
prefix=Person: | |||
preloadparams[]={{urlencode:{{PAGENAME}}}} | |||
editintro=MediaWiki:Newpersontext | |||
width=10 | |||
</inputbox> | |||
==== Links ==== | |||
* https://www.mediawiki.org/wiki/Extension:InputBox | |||
* https://www.mediawiki.org/w/api.php?action=help&modules=edit | |||
* https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php | |||
== Movies to Watch == | == Movies to Watch == | ||
Line 73: | Line 163: | ||
;browner tan :#f2ece5 | ;browner tan :#f2ece5 | ||
== MW Messages == | |||
* https://www.mediawiki.org/wiki/Help:System_message | |||
* https://translatewiki.net/wiki/User:Collinj/MesssageTypes | |||
== transclude section == | |||
* {{#lsth:Moving Image:Ozon Hairspray Commercial| Synopsis }} | |||
=== transclude templatedata === | |||
<pre class="jjrPre"><nowiki>{{msgnw:Template:Filmjr/doc/pTitle}}</nowiki></pre> | |||
kind of works? | |||
{{msgnw:Template:Filmjr/doc/pTitle}} | |||
kind of works: | |||
{{#lsth:Template:DescUnpack/doc| TemplateData }} | |||
this does not work: | |||
<pre class="jjrPre"><nowiki>{{#tag:templatedata|{{Template:DescUnpack/doc}}</nowiki></pre> | |||
== Date == | |||
{{Date|1950}} | |||
{{Date|1950/09/01}} | |||
{{Date|June|1952}} | |||
{{Date|2016|06|10}} | |||
{{Date||06|10}} | |||
== Scribunto == | |||
{{#invoke: HelloWorld|hello}} | |||
{{Duration|h=10|m=20|s=30}} | |||
{{Duration|00:00:34}} | |||
=== Yesno === | |||
;yes to 1:{{Yesno|yes|yes=1|no=0}} | |||
;no to zero:{{Yesno|no|yes=1|no=0}} | |||
== interwiki == | |||
[[w:Sunflower]] | |||
[[wikipedia:Sunflower]] | |||
[[Special:Interwiki]] | |||
[[commons:Category:Videos]] | |||
[[google:regular expression cheatsheet]] | |||
Interwiki links are internal-style links to other websites (which do not have to be wikis, despite the name). | |||
For example, you can link to the article https://en.wikipedia.org/wiki/Sunflower by typing <code><nowiki>[[wikipedia:Sunflower]]</nowiki></code> or, on this wiki, the shorter <code><nowiki>[[w:Sunflower]]</nowiki></code>. Both will result in a link [[wikipedia:Sunflower]]. | |||
This works because by default MediaWiki configures <code>wikipedia:</code> as an "interwiki prefix" that turns into <nowiki>https://en.wikipedia.org/wiki/</nowiki> when used inside <nowiki>[[ ]]</nowiki>. (''It may not work if the admin of your wiki has changed the setting.'') Unlike internal links, interwiki links do not use page existence detection, so an interwiki link will appear blue even if the page does not exist on the remote wiki. | |||
Similar to internal page links, you can create piped links, with alternate link label, e.g. <code><nowiki>[[wikipedia:Sunflower|big yellow flower]]</nowiki></code> is the link [[wikipedia:Sunflower|big yellow flower]] and <code><nowiki>[[wikipedia:Sunflower|]]</nowiki></code> is the link [[wikipedia:Sunflower|Sunflower]]. | |||
Basically, interwiki links are abbreviations for commonly-used longer external links. A very similar link could be created as <code><nowiki>[https://en.wikipedia.org/wiki/Sunflower big yellow flower]</nowiki></code>. | |||
More details are at [https://www.mediawiki.org/wiki/Manual:Interwiki Manual:Interwiki] and [[m:Help:Interwiki linking]]. Your wiki may have a [[Special:Interwiki]] page listing the interwiki prefixes it supports; {{git file | file=maintenance/interwiki.list | text=here is the default interwiki list}}. You can edit the [[Manual:Interwiki table|interwiki]] table on your site. | |||
=== Interlanguage links === | |||
When a link is both interwiki and interlanguage, the order is '''[[wikipedia:en:Sunflower]]'''. | |||
For more information, see [[<tvar name=meta>m:Help:Interwiki linking#Interlanguage links</tvar>|m:Help:Interwiki linking#Interlanguage links]]. | |||
== time == | |||
duration and release date | |||
<pre class="jjrPre"><nowiki>I have a date on <time datetime="2008-02-14 20:00">Valentines day</time></nowiki></pre> | |||
== explode == | |||
{{#explode:And if you tolerate this| |2}} | |||
{{#explode:And if you tolerate this| |0}} | |||
{{#explode:{{PAGENAME}}| |0}} | |||
=== cool subst === | |||
<nowiki>{{subst:#explode:{{subst:PAGENAME}}| |0}}</nowiki> | |||
<pre class="jjrPre"><nowiki>{{subst:#explode:{{subst:PAGENAME}}| |0}}</nowiki></pre> | |||
== page type module == | |||
I have no clue what this thing does - [[Template:Pagetype]] | |||
{{pagetype|page=Person:Bob Kohl}} | |||
{{pagetype|page=User:Jerimee}} |
Latest revision as of 15:05, 14 June 2022
Participant WIP
Mystery problem
Lua error in Module:Documentation at line 140: message: type error in message cfg.container (string expected, got nil)
Template:CatAutoTOC is part of it
Template:Template other demobox sucks
:addClass(message('container')) cfg['view-link-display'] = 'view' Template:Documentation/preload Template:Documentation/preload-module-doc
MediaWiki:Scribunto-doc-page-show
invo
invo
Microdata formats
- https://www.w3.org/TR/xhtml-rdfa-primer/
- http://microformats.org/wiki/media-info-examples
- https://www.dublincore.org/
microdata
<div itemscope itemtype="https://schema.org/Movie">
- RDFa
- <div vocab="https://schema.org/" typeof="Movie">
Links
- Step_a_Little_Higher/sandbox
- User:JJR/heldby
- User:JJR/nsexample
- https://www.youtube.com/channel/UCiyi7aqzHn98o7OYDcDS8HQ
https://gist.github.com/jdittrich/5611208
batch move
https://www.mediawiki.org/wiki/Manual:MoveBatch.php
https://gist.github.com/karkraeg/57be991d0884811218ec94ecc643c415
toolbar
- https://www.mediawiki.org/wiki/OOUI/Toolbars
- basic doc on modify toolbar: https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization
- source for default toolbar: https://phabricator.wikimedia.org/diffusion/EWED/browse/master/modules/jquery.wikiEditor.toolbar.config.js
- https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization#Basic_setup
- https://www.mediawiki.org/wiki/Manual:$wgIncludejQueryMigrate
phc
https://www.middlebury.edu/library/special-collections/collections
tpl
my tpls Category: JR templates
Filmjr |title= |embid= |embsv= |heldby= |synop=0 |forma= |year= |up=|next=|prev=|step=1 |lang=English |pbrs= |len=00:00:00 |link= |bw= |ani= |ewid=|oembedid=|mdpi=|oclc= |dopt=2|athumb=<noinclude> {{Documentation}} </noinclude>
tips
oembed https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/issues/19
Making emptiness and undefinedness equivalent
It is often convenient if assigning the empty string to a parameter has the same effect as not assigning any value to it, as the difference is somewhat abstract, and as mentioned, in some cases there is not even the choice. Also, for example "p=
" may be put for convenience, to be filled in later, and/or meant to make explicit that the template has a parameter p, but at this time we do not give it a value.
Making emptiness and undefinedness equivalent can for example be achieved by exclusively using {{{p|}}}
, not {{{p}}}
and not {{{p|q}}}
for a non-empty q, or for example using {{#if:{{{p|}}}|..{{{p}}}..|..}}
(i.e., using {{{p}}}
only in branches of branching functions where it is defined and non-empty).
preload
Person%3A20240614111438
this almost works... you could title the person with the name of the given film and the role...
add section to arbitrary page
- this doesn't work
- http://ephemeralfilm.info/a/index.php?action=edit§ion=new&pageid=22199§iontitle=Synopsis
- http://ephemeralfilm.info/a/Moving_Image:It%27s_All_Music/edit?section=new&summary=synopsis
- this kind of works
- http://ephemeralfilm.info/a/Moving_Image:It%27s_All_Music/edit?section=new&preloadtitle=Synopsis
- can we tell if the section exists?
Template Tc does not exist
Filmjr exists
no
ff: no
inputBox Preload
Links
- https://www.mediawiki.org/wiki/Extension:InputBox
- https://www.mediawiki.org/w/api.php?action=help&modules=edit
- https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php
Movies to Watch
Colors
- light green
- #e2f8f6
- light purple
- #c9bddc
- yellow tan
- #f8f6e3
- browner tan
- #f2ece5
MW Messages
- https://www.mediawiki.org/wiki/Help:System_message
- https://translatewiki.net/wiki/User:Collinj/MesssageTypes
transclude section
"When you find a girl whose hair feels like hair..."
transclude templatedata
{{msgnw:Template:Filmjr/doc/pTitle}}
kind of works?
The title of the short film. Do not use colons, brackets, or other types of parenthesis. Dashes are permitted. If this short film's name was to be placed upon a marque or a printed program, how should it be rendered? Supply that here. This title will also be used to provide a display name for the page itself, and a title for embedded video if one is supplied.
kind of works:
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | the value of synopsis passed here by filmjr | String | required |
this does not work:
{{#tag:templatedata|{{Template:DescUnpack/doc}}
Date
Scribunto
Hello myWorld
10:20:30
0:00:34
Yesno
- yes to 1
- 1
- no to zero
- 0
interwiki
w:Sunflower wikipedia:Sunflower
google:regular expression cheatsheet
Interwiki links are internal-style links to other websites (which do not have to be wikis, despite the name).
For example, you can link to the article https://en.wikipedia.org/wiki/Sunflower by typing [[wikipedia:Sunflower]]
or, on this wiki, the shorter [[w:Sunflower]]
. Both will result in a link wikipedia:Sunflower.
This works because by default MediaWiki configures wikipedia:
as an "interwiki prefix" that turns into https://en.wikipedia.org/wiki/ when used inside [[ ]]. (It may not work if the admin of your wiki has changed the setting.) Unlike internal links, interwiki links do not use page existence detection, so an interwiki link will appear blue even if the page does not exist on the remote wiki.
Similar to internal page links, you can create piped links, with alternate link label, e.g. [[wikipedia:Sunflower|big yellow flower]]
is the link big yellow flower and [[wikipedia:Sunflower|]]
is the link Sunflower.
Basically, interwiki links are abbreviations for commonly-used longer external links. A very similar link could be created as [https://en.wikipedia.org/wiki/Sunflower big yellow flower]
.
More details are at Manual:Interwiki and m:Help:Interwiki linking. Your wiki may have a Special:Interwiki page listing the interwiki prefixes it supports; Template:Git file. You can edit the interwiki table on your site.
Interlanguage links
When a link is both interwiki and interlanguage, the order is wikipedia:en:Sunflower.
For more information, see [[<tvar name=meta>m:Help:Interwiki linking#Interlanguage links</tvar>|m:Help:Interwiki linking#Interlanguage links]].
time
duration and release date
I have a date on <time datetime="2008-02-14 20:00">Valentines day</time>
explode
you
And
JJR
cool subst
{{subst:#explode:{{subst:PAGENAME}}| |0}}
{{subst:#explode:{{subst:PAGENAME}}| |0}}
page type module
I have no clue what this thing does - Template:Pagetype
page
page