Difference between revisions of "Wrecks:Main Page"

From Publication Station
m (Andre moved page Wrechs:Main Page to Wrecks:Main Page)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Main Page for the Wrechs project.'''
'''Main Page for the Wrecks project.'''


'''To make the content from Wrechs independent''' from the rest of the Publication Station of the wiki, '''always use the namespace Wreck:''' on the pages you create for the project.
'''To make the content from Wrecks independent''' from the rest of the Publication Station of the wiki, '''always use the namespace Wreck:''' on the pages you create for the project.


'''To create pages''' use the following syntax:
'''To create pages''' use the following syntax:
<nowiki>[[Wreck:mypage]]</nowiki> which will translate onto <nowiki>[[Namespace:title of the page]]</nowiki>, and result onto page (links), such as the following:
<nowiki>[[Wreck:mypage]]</nowiki> which will translate onto <nowiki>[[Namespace:title of the page]]</nowiki>, and result onto page (links), such as the following:


[[Wreck:foo]]


[[Wreck:mypage]]


=Using the API=
Note: To be able to read the API responses in your browser you can install a JSON reading extension on the browser.
A few examples on how to get Wrecks content from the wiki.
'''All the pages under the Wrecks namespace:'''
http://publicationstation.wdka.hro.nl/wiki/api.php?format=json&action=query&list=allpages&apnamespace=202


<nowiki>http://publicationstation.wdka.hro.nl/wiki/api.php?</nowiki> - the address of the API + ?


<code>format=json&</code> - the format in which the information with appear: JSON


=Using the API=
<code>action=query&</code> - the action asked from the API: query
Note: To be able to read the API responses in your browser you can install a JSON reading extension on the browser.
 
<code>list=allpages&</code> - what to query: a list of all the pages


A few examples on how to get Wrechs content from the wiki.
<code>apnamespace=202</code> - from all pages get only namespace with Namespace id = 202, which is the Namespace Wrecks   


All the pages under the Wrechs namespace:
<code> &</code> - a division between the different statements.
http://publicationstation.wdka.hro.nl/wiki/api.php?format=json&action=query&list=allpages&apnamespace=202
http://publicationstation.wdka.hro.nl/wiki/api.php? - the address of the API + ?
format=json& - the format in which the information with appear: JSON
action=query& - the action asked from the API: query
list=allpages& - what to query: a list of all the pages
apnamespace=202 - from all pages get only namespace with Namespace id = 202, which is the Namespace Wrechs   
& - a division between the different statements.


The content of the page [[Wrechs:foo]]:
'''The content of the page [[Wrecks:foo]]:'''
http://publicationstation.wdka.hro.nl/wiki/api.php?format=json&action=query&titles=Wrechs:foo&prop=revisions&rvprop=content
http://publicationstation.wdka.hro.nl/wiki/api.php?format=json&action=query&titles=Wrecks:foo&prop=revisions&rvprop=content


like the previous, but with
like the previous, but with
titles=Wrechs:foo& - title (of page) to query:  Wrechs:foo
<code>titles=Wrecks:foo&</code> - title (of page) to query:  Wrecks:foo
prop=revisions&rvprop=content&  - from the property revisions get the the content (rvprop=content) of the most recent revision of


<code>prop=revisions&rvprop=content&</code> - from the property revisions get the the content (rvprop=content) of the most recent revision of


The content of the page on the Nyan cat from English wikipedia:
https://en.wikipedia.org/w/api.php?format=json&action=query&titles=Nyan_Cat&prop=revisions&rvprop=content


See how similar the API address is similar to the the one from the page [[Wrechs:foo]] the only difference is the in base-address (https://en.wikipedia.org/w/) and on the title of the page (titles=Nyan_Cat)
'''The content of the page on the Nyan cat from English wikipedia:
'''https://en.wikipedia.org/w/api.php?format=json&action=query&titles=Nyan_Cat&prop=revisions&rvprop=content
 
See how similar the API address is similar to the the one from the page [[Wrecks:foo]] the only difference is the in base-address (https://en.wikipedia.org/w/) and on the title of the page (titles=Nyan_Cat)




Line 44: Line 46:
* API Tutorial https://www.mediawiki.org/wiki/API:Tutorial
* API Tutorial https://www.mediawiki.org/wiki/API:Tutorial
* API overview https://www.mediawiki.org/wiki/API:Main_page
* API overview https://www.mediawiki.org/wiki/API:Main_page
=HTML / CSS =
HTML
<source lang="html4strict">
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table>
<tr>
<td id="a"><!--td table cell -->
<p>Hello website</p>
</td>
<td id="b">    <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
<p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
<p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
</td>
<td id="c">    <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
<p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
<p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
</td>
</tr>
</table>
</body>
</html>
</source>
CSS
<source lang="css">
body{
    font-size:16pt; 
    color: #1470CC;
    background: #EB52F9;
}
p{
font-size: 1.5em;
    width: 500px;
    margin-top:0px;
    margin-bottom:0px;
}
table{
    width:100%;
}
td {
    border: 1px black solid;
    width: 1000px;
    padding:0px;
}
/* CSS Comments*/
</source>

Latest revision as of 07:55, 16 April 2019

Main Page for the Wrecks project.

To make the content from Wrecks independent from the rest of the Publication Station of the wiki, always use the namespace Wreck: on the pages you create for the project.

To create pages use the following syntax: [[Wreck:mypage]] which will translate onto [[Namespace:title of the page]], and result onto page (links), such as the following:


Using the API

Note: To be able to read the API responses in your browser you can install a JSON reading extension on the browser.

A few examples on how to get Wrecks content from the wiki.

All the pages under the Wrecks namespace: http://publicationstation.wdka.hro.nl/wiki/api.php?format=json&action=query&list=allpages&apnamespace=202

http://publicationstation.wdka.hro.nl/wiki/api.php? - the address of the API + ?

format=json& - the format in which the information with appear: JSON

action=query& - the action asked from the API: query

list=allpages& - what to query: a list of all the pages

apnamespace=202 - from all pages get only namespace with Namespace id = 202, which is the Namespace Wrecks

& - a division between the different statements.

The content of the page Wrecks:foo: http://publicationstation.wdka.hro.nl/wiki/api.php?format=json&action=query&titles=Wrecks:foo&prop=revisions&rvprop=content

like the previous, but with titles=Wrecks:foo& - title (of page) to query: Wrecks:foo

prop=revisions&rvprop=content& - from the property revisions get the the content (rvprop=content) of the most recent revision of


The content of the page on the Nyan cat from English wikipedia: https://en.wikipedia.org/w/api.php?format=json&action=query&titles=Nyan_Cat&prop=revisions&rvprop=content

See how similar the API address is similar to the the one from the page Wrecks:foo the only difference is the in base-address (https://en.wikipedia.org/w/) and on the title of the page (titles=Nyan_Cat)


Mediawiki API Resources


HTML / CSS

HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
 </head>
 <body>
<table>
 <tr>
<td id="a"><!--td table cell -->
 <p>Hello website</p>
</td>

<td id="b">    <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
 <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
 <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
</td>

<td id="c">    <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
 <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
 <p>It is my mission to welcome exponential development technologies as sources for positive change and societal value. As I see it, recent developments towards radical transparency, empowerment of individuals, traceability and a collaborative network economy are reshaping society and leading to business innovation; one of my statements is 'small beats big'. In my presentation at the WdKA symposium 'Redesigning Business' (November 20 2014) I talked about the concept of paradigm shift and its consequences for businesses.</p>
</td>

 </tr>
</table>
 </body>
</html>

CSS

body{
    font-size:16pt;   
    color: #1470CC;
    background: #EB52F9;
}


p{
 font-size: 1.5em;
    width: 500px;
    margin-top:0px;
    margin-bottom:0px;
}

table{
    width:100%;
}

td {
    border: 1px black solid;
    width: 1000px;
    padding:0px;
}

/* CSS Comments*/