https://wiki.seshstation.com/index.php?title=Module:WikidataIB/titleformats&feed=atom&action=history
Module:WikidataIB/titleformats - Revision history
2024-03-28T08:24:22Z
Revision history for this page on the wiki
MediaWiki 1.36.1
https://wiki.seshstation.com/index.php?title=Module:WikidataIB/titleformats&diff=452&oldid=prev
SESHstation: 1 revision imported
2021-11-21T11:11:29Z
<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:11, 21 November 2021</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
SESHstation
https://wiki.seshstation.com/index.php?title=Module:WikidataIB/titleformats&diff=451&oldid=prev
tmpl>RexxS: add magazine
2020-04-30T16:11:19Z
<p>add magazine</p>
<p><b>New page</b></p><div>--[[<br />
To satisfy Wikipedia:Manual of Style/Titles, certain types of items are italicised,<br />
and others are quoted.<br />
This submodule lists the entity-ids used in 'instance of' (P31),<br />
which allows a module to identify the values that should be formatted.<br />
The table p.formats is indexed by entity-id, and contains the value " or ''<br />
--]]<br />
<br />
local p = {}<br />
<br />
p.italics = {<br />
"Q571", -- book<br />
"Q13593966", -- literary trilogy<br />
"Q277759", -- book series<br />
"Q2188189", -- musical work<br />
"Q11424", -- film<br />
"Q13593818", -- film trilogy<br />
"Q24856", -- film series<br />
"Q5398426", -- television series<br />
"Q482994", -- album<br />
"Q169930", -- extended play<br />
"Q1760610", -- comic book<br />
"Q7889", -- video game<br />
"Q7058673", -- video game series<br />
"Q25379", -- play<br />
"Q2743", -- musical<br />
"Q37484", -- epic poem<br />
"Q41298", -- magazine<br />
}<br />
<br />
p.quotes = { <br />
"Q207628", -- musical composition<br />
}<br />
<br />
p.size = 0<br />
p.formats = {}<br />
<br />
for i, v in ipairs(p.italics) do<br />
p.formats[v] = "''"<br />
p.size = p.size + 1<br />
end<br />
<br />
for i, v in ipairs(p.quotes) do<br />
p.formats[v] = '"'<br />
p.size = p.size + 1<br />
end<br />
<br />
return p</div>
tmpl>RexxS